package org.fig.ioc.overview.repository;

import org.fig.ioc.overview.domain.User;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.ObjectFactory;

import java.util.Collection;

/**
 * @Description: 用户信息仓库
 * @Author: Flynn Vanderboom
 * @Data: 2021/6/9 23:02
 */

public class UserRepository {
    private Collection<User> repository;

    private BeanFactory beanFactory;

    private ObjectFactory objectFactory;

    public Collection<User> getRepository() {
        return repository;
    }

    public void setRepository(Collection<User> repository) {
        this.repository = repository;
    }


    public BeanFactory getBeanFactory() {
        return beanFactory;
    }

    public void setBeanFactory(BeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }


    public ObjectFactory getObjectFactory() {
        return objectFactory;
    }

    public void setObjectFactory(ObjectFactory objectFactory) {
        this.objectFactory = objectFactory;
    }

    @Override
    public String toString() {
        return "UserRepository{" +
                "repository=" + repository +
                '}';
    }
}
